package oi;

import java.io.*;

public class PWDemo2 {
    public static void main(String[] args) {
        try(PrintWriter pw = new PrintWriter(
                new BufferedWriter(
                        new OutputStreamWriter(
                                new FileOutputStream("pw.txt"))),true);) {
            pw.println("大熊");
            pw.println("静香");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
